/*
* © 2010 Autodata Solutions Company. All Rights Reserved
* This source code is the confidential and proprietary information of Autodata Solutions Company.
* The user shall not, in whole or in part, copy, publish, disclose or make any use of this source code
* without the prior written consent of Autodata Solutions Company.
*/
Ext.ns('net.autodata.compare');

(function () {
	
	/**
	 * A customized Ext.Button 
	 * @class RemoveButton
	 * @extends Ext.Button
	 * @namespace net.autodata.compare
	 */
	var Button = Ext.extend(Ext.Button, {
		
		ctCls: 'a-btn-remove',
		text: 'X',
		
		width: 20,
		
		constructor: function ()
		{
			this.addEvents({
				'remove': true
			});
			Button.superclass.constructor.apply(this, arguments);
		},
		
		initComponent: function ()
		{
			Button.superclass.initComponent.apply(this, arguments);
		}
	});
	
	net.autodata.compare.RemoveButton = Button;
	
	Ext.reg('a-btn-remove', net.autodata.compare.RemoveButton);
	
})();
